Skip to content

DYN-8957 fix: set NoNetworkMode before InitializeComponent in WorkspaceDependencyView#17170

Closed
jasonstratton wants to merge 1 commit into
DynamoDS:8957-pm-no-network-tooltipsfrom
jasonstratton:8957-fix-no-network-init-order
Closed

DYN-8957 fix: set NoNetworkMode before InitializeComponent in WorkspaceDependencyView#17170
jasonstratton wants to merge 1 commit into
DynamoDS:8957-pm-no-network-tooltipsfrom
jasonstratton:8957-fix-no-network-init-order

Conversation

@jasonstratton

Copy link
Copy Markdown
Contributor

Summary

  • NoNetworkMode is a plain CLR property with no INotifyPropertyChanged. When it was assigned after InitializeComponent(), the XAML DataTrigger (which drives IsEnabled on the Install Specified Version button) had already evaluated the binding with the default value false and would never re-fire.
  • This meant the Install button remained enabled even when Dynamo started in no-network mode.
  • Fix: move the assignment to before InitializeComponent() so the trigger reads the correct value on first evaluation.

Test plan

  • Existing test WhenNoNetworkModeThenWorkspaceReferencesInstallButtonIsDisabled passes (verifies DependencyView.NoNetworkMode is propagated)
  • Manual: launch Dynamo with --NoNetworkMode, open a graph with missing packages, open Workspace References — Install Specified Version button should be disabled

🤖 Generated with Claude Code

…ncyView

NoNetworkMode is a plain CLR property with no change notification.
When assigned after InitializeComponent(), the XAML DataTrigger that
drives IsEnabled on the Install button had already evaluated the binding
with the default value (false) and would never re-fire. Moving the
assignment before InitializeComponent() ensures the trigger reads the
correct value on first evaluation and the button is reliably disabled
in no-network mode.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-8957

@sonarqubecloud

Copy link
Copy Markdown

@jasonstratton

Copy link
Copy Markdown
Contributor Author

Changes applied directly to PR #17149 instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant